package com.my.chapter5;

public class practice22 {
    public static void main(String[] args) {
        for(Money m:Money.values()){
            describe(m);
        }
    }
    public enum Money{
        one,two,five,ten,twenty,fifty,hundred
    }
    static void describe(Money money){
        switch (money){
            case one:
                System.out.println("1元");break;
            case two:
                System.out.println("2元");break;
            case five:
                System.out.println("5元");break;
            case ten:
                System.out.println("10元");break;
            case twenty:
                System.out.println("20元");break;
            case fifty:
                System.out.println("50元");break;
            case hundred:
                System.out.println("100元");break;
        }
    }

}
